package com.wrx.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
//@TableName("t_reply_post")
@ApiModel(value="ReplyPostModel对象", description="")
public class ReplyPostModel {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "回帖id")
    @TableId(value = "reply_post_id", type = IdType.AUTO)
    private Integer reply_post_id;

    @ApiModelProperty(value = "用户id")
    private Integer user_id;

    @ApiModelProperty(value = "用户网名")
    private String netname;

    @ApiModelProperty(value = "头像图片地址")
    private String image;

    @ApiModelProperty(value = "回帖信息")
    private String reply_post_info;

    @ApiModelProperty(value = "主题帖id")
    private Integer theme_post_id;

    @ApiModelProperty(value = "回帖时间")
    private LocalDateTime reply_post_time;

    @ApiModelProperty(value = "帖子楼数")
    private Integer reply_post_floor;

    @ApiModelProperty(value = "是否被删除")
    private Integer reply_post_state;

    @ApiModelProperty(value = "发起删除者身份")
    private Integer del_status;


    ReplyPostModel(){};



    public ReplyPostModel(Integer reply_post_id, Integer user_id, String netname, String image, String reply_post_info, Integer theme_post_id, LocalDateTime reply_post_time, Integer reply_post_floor, Integer reply_post_state) {
        this.reply_post_id = reply_post_id;
        this.user_id = user_id;
        this.netname = netname;
        this.image = image;
        this.reply_post_info = reply_post_info;
        this.theme_post_id = theme_post_id;
        this.reply_post_time = reply_post_time;
        this.reply_post_floor = reply_post_floor;
        this.reply_post_state = reply_post_state;
    }

    public ReplyPostModel(Integer reply_post_id, Integer user_id, String netname, String image, String reply_post_info, Integer theme_post_id, LocalDateTime reply_post_time, Integer reply_post_floor, Integer reply_post_state, Integer del_status) {
        this.reply_post_id = reply_post_id;
        this.user_id = user_id;
        this.netname = netname;
        this.image = image;
        this.reply_post_info = reply_post_info;
        this.theme_post_id = theme_post_id;
        this.reply_post_time = reply_post_time;
        this.reply_post_floor = reply_post_floor;
        this.reply_post_state = reply_post_state;
        this.del_status = del_status;
    }

    public Integer getDel_status() {
        return del_status;
    }

    public void setDel_status(Integer del_status) {
        this.del_status = del_status;
    }

    public Integer getReply_post_state() {
        return reply_post_state;
    }

    public void setReply_post_state(Integer reply_post_state) {
        this.reply_post_state = reply_post_state;
    }

    public Integer getReply_post_id() {
        return reply_post_id;
    }

    public void setReply_post_id(Integer reply_post_id) {
        this.reply_post_id = reply_post_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getNetname() {
        return netname;
    }

    public void setNetname(String netname) {
        this.netname = netname;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getReply_post_info() {
        return reply_post_info;
    }

    public void setReply_post_info(String reply_post_info) {
        this.reply_post_info = reply_post_info;
    }

    public Integer getTheme_post_id() {
        return theme_post_id;
    }

    public void setTheme_post_id(Integer theme_post_id) {
        this.theme_post_id = theme_post_id;
    }

    public LocalDateTime getReply_post_time() {
        return reply_post_time;
    }

    public void setReply_post_time(LocalDateTime reply_post_time) {
        this.reply_post_time = reply_post_time;
    }

    public Integer getReply_post_floor() {
        return reply_post_floor;
    }

    public void setReply_post_floor(Integer reply_post_floor) {
        this.reply_post_floor = reply_post_floor;
    }
}
